<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/tag/sys" prefix="sys"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<sys:baseUrl/>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style/floatDiv.css" type="text/css" />
<link rel="stylesheet" href="admin/style/pic_news.css" type="text/css" />
<link rel="stylesheet" href="admin/style/common.css" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="admin/js/jquery.flyout-1.2.js"></script>
<script type="text/javascript" src="js/floatDiv.js"></script>
<script type="text/javascript" src="admin/js/pic_news.js"></script>
<title>相册新闻 ${news.title }</title>
</head>
<body>
	<div id="initial_data" style="display: none;">
	<c:forEach items="${news.pictures }" var="pic" varStatus="st">
		<label id="initial_data_${st.index }_id">${pic.id }</label>
		<label id="initial_data_${st.index }_thumb">${pic.thumb }</label>
		<label id="initial_data_${st.index }_path">${pic.path }</label>
		<label id="initial_data_${st.index }_remark">${pic.remark }</label>
	</c:forEach>
	</div>
	<div class="center" style="width:800px;">
		<form action="admin/update/news/${sp.name }/picture" method="post">
			<input type="hidden" name="id" value="${news.id }"/>
			<label>新闻标题：<input name="title" size="40" value="${news.title }"/></label>
			<label>新闻分类：
		<select name="sort">
		<c:forEach items="${sp.sorts }" var="sps">
			<c:forEach items="${op.sorts }" var="ops">
				<c:if test="${ops.id==sps.id }">
					<c:if test="${ops.id==news.sort.id }">
						<option value="${ops.id }" selected="selected">${ops.name }</option>
					</c:if>
					<c:if test="${ops.id!=news.sort.id }">
						<option value="${ops.id }">${ops.name }</option>
					</c:if>
				</c:if>
			</c:forEach>
		</c:forEach>
		</select>
		</label>
			<br/><br/>
			<input id="picture" name="picture" style="display: none;"/>
			<a href="javascript:void(0);" onclick="open_upload_form()">添加图片</a>
			<div id="img_box">
			</div>
			<center>
				<input type="submit" name="publish" value="提交" onclick="return doSubmit(this.form)">
			</center>
		</form>
	</div>
	<!-- 上传图片 -->
	<div id="upload" class="floatDiv">
		<div id="upload_title">上传图片<a href="javascript:void(0)" onclick="closeDiv('upload')">关闭</a></div>
		<iframe id="upload_form" width="295px" height="95px"
			frameborder="0"> </iframe>
	</div>
	<!-- 编辑图片注释 -->
	<div id="remark" class="floatDiv">
		<div id="remark_title">编辑注释</div>
		<textarea id="remark_area" rows="3" cols="30" style="width:295px;height:100px;"></textarea>
		<br/>
		<center>
			<a href="javascript:void(0)" onclick="editRemarkDone()">确认</a>&nbsp;&nbsp;&nbsp;
			<a href="javascript:void(0)" onclick="closeDiv('remark')">关闭</a>
		</center>
	</div>
</body>
</html>